package com.ruoyi.system.amqp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class AmqpClient {
    @Autowired
    private AmqpClientBase amqpClientBase;

    @PostConstruct
    public void startClient() throws Exception {
        amqpClientBase.startClient();
    }

    public void stopClient() throws Exception {
        amqpClientBase.stopClient();
    }
}
